package com.wang.service.impl;

import com.wang.dao.RoleDao;
import com.wang.pojo.Role;
import com.wang.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleDao roleDao;
    @Override
    public List<Role> list(String roleName) {
        return roleDao.list(roleName);
    }

    @Override
    public int add(Role role) {
        return roleDao.add(role);
    }
}
